package com.family.gmall.web;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Auther: family
 * @Date: 2023/7/14 09:12
 * @Description:
 */

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@EnableDiscoveryClient
@ComponentScan(basePackages = {
        "com.family.gmall.web",
        "com.family.gmall.common.interceptor"
})
@EnableFeignClients(basePackages = {
        "com.family.gmall.product.client",
        "com.family.gmall.item.client",
        "com.family.gmall.list.client",
        "com.family.gmall.cart.client",
        "com.family.gmall.order.client",
})
public class WebAllApplication {
    public static void main(String[] args) {
        SpringApplication.run(WebAllApplication.class, args);
    }
}
